<HTML>
<BODY>
<PRE>
<!-- Manpage converted by man2html 3.0.1 -->

<B><A HREF="CEIL.html">CEIL(3)</A></B> 	       FreeBSD Library Functions Manual 	       <B><A HREF="CEIL.html">CEIL(3)</A></B>


</PRE>
<H2>NAME</H2><PRE>
     <B>ceil</B>, <B>ceilf</B> - round to smallest integral value &gt;= x


</PRE>
<H2>SYNOPSIS</H2><PRE>
     <B>#include</B> <B>&lt;math.h&gt;</B>

     <I>double</I>
     <B>ceil</B>(<I>double</I> <I>x</I>)

     <I>float</I>
     <B>ceilf</B>(<I>float</I> <I>x</I>)


</PRE>
<H2>DESCRIPTION</H2><PRE>
     The <B>ceil</B>() and the <B>ceilf</B>() functions return the smallest integral value
     (represented as a double precision number) greater than or equal to <I>x</I>.


</PRE>
<H2>SEE ALSO</H2><PRE>
     <B><A HREF="abs.html">abs(3)</A></B>,  <B><A HREF="fabs.html">fabs(3)</A></B>,	<B><A HREF="floor.html">floor(3)</A></B>,  <B><A HREF="ieee.html">ieee(3)</A></B>,  <B><A HREF="math.html">math(3)</A></B>,  <B><A HREF="rint.html">rint(3)</A></B>


</PRE>
<H2>STANDARDS</H2><PRE>
     The <B>ceil</B>() function conforms to ISO 9899: 1990 (``ISO C'').

BSD				March 10, 1994				     1
</PRE>
<HR>
<ADDRESS>
Man(1) output converted with
<a href="http://www.oac.uci.edu/indiv/ehood/man2html.html">man2html</a>
</ADDRESS>
</BODY>
</HTML>
